package com.hf.www.tools;

import com.jfinal.kit.Prop;
import com.jfinal.kit.PropKit;

public class SysConstants {

	private static final Prop prop = PropKit.use("sysConfig.properties");

	/**
	 * controller不限制的url(不带方法名)
	 */
	public static final String[] CONTROLLER_UNLIMIT_URL = prop.get("controllerUnLimitUrl", "").split(";");

	/**
	 * action不限制的url(带方法名)
	 */
	public static final String[] ACTION_UNLIMIT_URL = prop.get("actionUnLimitUrl", "").split(";");

	/**
	 * action 限制url(带方法名)  
	 */
	
	public static final String[] ACTION_LIMIT_URL = prop.get("actionLimitUrl", "").split(";");
	
	
	
	/**
	 * 默认用户密码
	 */
	public static final String DEFAULT_PASSWORD = "111111";

	/**
	 * DEBUG模式
	 */
	public static final boolean DEBUG = false;

	/**
	 * 是否压缩HTML代码
	 */
	public static final boolean HTML_IS_COMPRESS = false;

	/**
	 * session user
	 */
	public static final String SESSION_USER = "sessionUser";


	/**
	 * 视图默认路径
	 */
	public static final String VIEW_BASE_PATH = "biz-logic";

	/**
	 * 接口权限密匙
	 */
	public static final String AUTH_LOCAL_KEY = prop.get("authLocalKey", "!hy@jszs#jk$");

	/**
	 * 统计提前时间时间
	 */
	public static final int STATS_BEFORE_TIME = prop.getInt("statsBeforeTime", 1);

	/**
	 * 请求时间与服务器时间间隔
	 */
	public static final int AUTH_INTERVAL_TIME = prop.getInt("authIntervalTime", 60000);

	/**
	 * 图标CDN下载地址
	 */
	public static final String ADS_NOICON_DOWNLOAD_URL = prop.get("adsNoiconDownloadUrl", "http://iosads.cdn.bb800.com/");

}
